package Custom_generics;

//测试如何实例化 “自定义泛型类” 并调用
public class Test_01 {

    public static void main(String[] args) {
        Generic_class_1<Integer> genericClass1 = new Generic_class_1<>();
        genericClass1.setCar(555555);
        System.out.println(genericClass1.getCar());
        System.out.println("-----------------------");
        Generic_class_1<String> genericClass2 = new Generic_class_1<>();
        genericClass2.setCar("宝马");
        System.out.println(genericClass2.getCar());

    }
}
